/**
 * 
 */
package bai8.com.command;

import java.io.Serializable;

/**
 * @author nglehien Oct 23, 2012 - 9:53:42 AM
 */
public final class Message implements Serializable {

	private static final long serialVersionUID = 8461514881333908460L;

	private int command;
	private int position;
	private String data;
	private String insert;
	private String delete;

	protected Message() {

	}

	public String getDelete() {
		return delete;
	}

	public void setDelete(String delete) {
		this.delete = delete;
	}

	public String getInsert() {
		return insert;
	}

	public void setInsert(String insert) {
		this.insert = insert;
	}

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public int getCommand() {
		return command;
	}

	public void setCommand(int command) {
		this.command = command;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	/**
	 * @param command
	 * @param data
	 */
	public Message(int command, String data) {
		super();
		this.command = command;
		this.data = data;
	}

	/**
	 * @param command
	 * @param position
	 * @param data
	 */
	public Message(int command, int position, String data) {
		super();
		this.command = command;
		this.position = position;
		this.data = data;
	}

	public Message(int command, String data, int position, String insert) {
		super();
		this.insert = insert;
		this.command = command;
		this.position = position;
		this.data = data;
	}

	public Message(int command, String data, String delete) {
		super();
		this.command = command;
		this.data = data;
		this.delete = delete;
	}

	public Message(int command) {
		super();
		this.command = command;
	}
}
